package com.mobor.moborsvr.infra.search;

import com.mobor.moborsvr.infra.search.impl.SearchWorker;

/**
 * Factory interface to generate search worker which further transfered to {@link SearchRequestManager}.
 * In general, each searcher is a bean with scope of Spring prototype.
 * @author teroleg
 *
 */
public interface SearchWorkerFactory {
	/**
	 * Generates new search worker.
	 * @return generated worker
	 */
	@SuppressWarnings("rawtypes")
	SearchWorker getSearchWorker();
}